﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using SqlSugar;

namespace Aioms.Models
{
    ///<summary>
    /// 移动端报修结果上传
    ///</summary>
    [SugarTable("notice_repair_result")]
    public class NoticeRepairResult
    {
        public NoticeRepairResult()
        {
            this.Created = DateTime.Now;
            this.Updated = DateTime.Now;
        }

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// 企业id
        /// </summary>           
        [SugarColumn(ColumnName = "eid")]
        public long Eid { get; set; }

        /// <summary>
        /// 报修ID
        /// </summary>           
        [SugarColumn(ColumnName = "npid")]
        public int NpId { get; set; }

        /// <summary>
        /// 设备id
        /// </summary>           
        [SugarColumn(ColumnName = "dvid")]
        public long Dvid { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [SugarColumn(ColumnName = "begintime")]
        public DateTime BeginTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [SugarColumn(ColumnName = "endtime")]
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 维修工时
        /// </summary>
        [SugarColumn(ColumnName = "manhour")]
        public long ManHour { get; set; }

        /// <summary>
        /// 维修结果
        /// </summary>
        [SugarColumn(ColumnName = "result")]
        public string Result { get; set; }

        /// <summary>
        /// 排故流程
        /// </summary>
        [SugarColumn(ColumnName = "procedure")]
        public string Procedure { get; set; }

        /// <summary>
        /// 照片
        /// </summary>
        [SugarColumn(ColumnName = "imgurl")]
        public string ImgUrl { get; set; }

        /// <summary>
        /// 视频
        /// </summary>
        [SugarColumn(ColumnName = "videourl")]
        public string VideoUrl { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "created")]
        public DateTime Created { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>           
        [SugarColumn(ColumnName = "updated")]
        public DateTime Updated { get; set; }

    }
}
